package com.wisemoresystem.seal.action.log;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.wisemoresystem.seal.base.action.ProjBaseAction;
import com.wisemoresystem.seal.service.SealLogService;

/**
 * 印章批量用印日志
 * 
 * @author hxj
 */
@Controller("ixSealBatchUse")
@Scope("prototype")
@RequestMapping("/ix/seal/batch")
public class SealBacthUseAction extends ProjBaseAction {

	@Autowired
	private SealLogService lService;

	@RequestMapping("/list")
	public ModelAndView list(String srh_bank, String seal_code,
			String srh_start, String srh_end) {

		List<Map<String, Object>> list = lService.selectSealUseLogList(
				srh_bank, seal_code, srh_start, srh_end, page);

		ModelAndView mv = new ModelAndView("jsp/log/seal/batch/list");
		mv.addObject("list", list);
		return mv;
	}
}
